package ModelLayer;

/**
 * A product object.
 * 31/05/2012
 * @author cbjerg
 * @version 0.1
 */

public class Product {
	
	private int productId;
	private String name;
	private String description;
	private int inStock;
	private double defaultPrice;
	private String productType;
	private int minStock;
	
	/**
	 * An empty product object.
	 */
	
	public Product()
	{
		
	}
	
	/**
	 * A product object with an empty productId.
	 * @param productName The name of the product.
	 * @param productDescription The description of the product.
	 * @param inStock The amount of the product in stock.
	 * @param defaultPrice The defaultPrice of the product.
	 * @param productType The productType of the product.
	 * @param minStock The minimum amount of the product that should be in stock.
	 */
	
	public Product(String productName, String productDescription, int inStock, double defaultPrice, String productType, int minStock)
	{
		productId=0;
		this.name=productName;
		this.description=productDescription;
		this.inStock=inStock;
		this.defaultPrice=defaultPrice;
		this.productType=productType;
		this.minStock=minStock;
		
	}
	
	/**
	 * A product object.
	 * @param productId The productId of the product. 
	 * @param productName The name of the product.
	 * @param productDescription The description of the product.
	 * @param inStock The amount of the product in stock.
	 * @param defaultPrice The defaultPrice of the product.
	 * @param productType The productType of the product.
	 * @param minStock The minimum amount of the product that should be in stock.
	 */
	
	public Product(int productId, String productName, String productDescription, int inStock, double defaultPrice, String productType, int minStock)
	{
		this.productId=productId;
		this.name=productName;
		this.description=productDescription;
		this.inStock=inStock;
		this.defaultPrice=defaultPrice;
		this.productType=productType;
		this.minStock=minStock;
		
	}

	/**
	 * @return the productId
	 */
	public int getProductId() {
		return productId;
	}

	/**
	 * @param productId the productId to set
	 */
	public void setProductId(int productId) {
		this.productId = productId;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @return the inStock
	 */
	public int getInStock() {
		return inStock;
	}

	/**
	 * @param inStock the inStock to set
	 */
	public void setInStock(int inStock) {
		this.inStock = inStock;
	}

	/**
	 * @return the defaultPrice
	 */
	public double getDefaultPrice() {
		return defaultPrice;
	}

	/**
	 * @param defaultPrice the defaultPrice to set
	 */
	public void setDefaultPrice(double defaultPrice) {
		this.defaultPrice = defaultPrice;
	}

	/**
	 * @return the productType
	 */
	public String getProductType() {
		return productType;
	}

	/**
	 * @param productType the productType to set
	 */
	public void setProductType(String productType) {
		this.productType = productType;
	}

	/**
	 * @return the minStock
	 */
	public int getMinStock() {
		return minStock;
	}

	/**
	 * @param minStock the minStock to set
	 */
	public void setMinStock(int minStock) {
		this.minStock = minStock;
	}

	
}
